package com.orange.dao;

import com.orange.domain.User;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by pengfei on 2016/11/25.
 */
@Repository
public class UserDao {
    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;
    public int addUser(User user){
       return sqlSessionTemplate.insert("user.addUser",user);
    }
}
